﻿using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Expression;
using Castle.ActiveRecord;
using Castle.ActiveRecord.Queries;

namespace Mang24k99.Model.KEYW
{
    [ActiveRecord(Table = "KT_KEYW_WORDS_History")]
    public partial class MKtKeywWordsHistory : ActiveRecordBase
    {
        public static IList<MKtKeywWordsHistory> SelectAll()
        {
            return (IList<MKtKeywWordsHistory>)FindAll(typeof(MKtKeywWordsHistory));
        }
        public static MKtKeywWordsHistory SelectByPrimaryKey(object ID)
        {
            return (MKtKeywWordsHistory)FindByPrimaryKey(typeof(MKtKeywWordsHistory), ID);
        }
        public static IList<MKtKeywWordsHistory> SelectALLByProperty(string property, object value)
        {
            return (IList<MKtKeywWordsHistory>)FindAllByProperty(typeof(MKtKeywWordsHistory), property, value);
        }
        public static IList<MKtKeywWordsHistory> SelectALLSliced(int firstResult, int maxResult, NHibernate.Expression.DetachedCriteria criteria)
        {

            return (IList<MKtKeywWordsHistory>)SlicedFindAll(typeof(MKtKeywWordsHistory), firstResult, maxResult, criteria);
        }



        /// <summary>
        /// Gets or sets the ID.()
        /// </summary>
        /// <value>The ID.</value>
        [PrimaryKey(PrimaryKeyType.Native, "ID")]
        public int ID
        {
            get
            {
                return _ID;
            }
            set
            {
                _ID = value;
            }
        }


        /// <summary>
        /// Gets or sets the WordsNO.()
        /// </summary>
        /// <value>The WordsNO.</value>
        [Property("WORDS_NO")]
        public int? WordsNO
        {
            get
            {
                return _WordsNO;
            }
            set
            {
                _WordsNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the WordsName.()
        /// </summary>
        /// <value>The WordsName.</value>
        [Property("WORDS_NAME")]
        public string WordsName
        {
            get
            {
                return _WordsName;
            }
            set
            {
                _WordsName = value;
            }
        }


        /// <summary>
        /// Gets or sets the MainWord.()
        /// </summary>
        /// <value>The MainWord.</value>
        [Property("MAIN_WORD")]
        public int? MainWord
        {
            get
            {
                return _MainWord;
            }
            set
            {
                _MainWord = value;
            }
        }


        /// <summary>
        /// Gets or sets the IsValidate.()
        /// </summary>
        /// <value>The IsValidate.</value>
        [Property("IS_VALIDATE")]
        public int? IsValidate
        {
            get
            {
                return _IsValidate;
            }
            set
            {
                _IsValidate = value;
            }
        }


        /// <summary>
        /// Gets or sets the InputTime.()
        /// </summary>
        /// <value>The InputTime.</value>
        [Property("INPUT_TIME")]
        public DateTime? InputTime
        {
            get
            {
                return _InputTime;
            }
            set
            {
                _InputTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the ModifyTime.()
        /// </summary>
        /// <value>The ModifyTime.</value>
        [Property("MODIFY_TIME")]
        public DateTime? ModifyTime
        {
            get
            {
                return _ModifyTime;
            }
            set
            {
                _ModifyTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the DeleteTime.()
        /// </summary>
        /// <value>The DeleteTime.</value>
        [Property("DELETE_TIME")]
        public DateTime? DeleteTime
        {
            get
            {
                return _DeleteTime;
            }
            set
            {
                _DeleteTime = value;
            }
        }



        private int _ID;

        private int? _WordsNO;

        private string _WordsName;

        private int? _MainWord;

        private int? _IsValidate;

        private DateTime? _InputTime;

        private DateTime? _ModifyTime;

        private DateTime? _DeleteTime;


    }
}
